package lab02.test35;

/**
 * Created by 婷婷 on 2017/11/22.
 */
public class Test35 {
    public static void main(String[] args) {
        Manager manager = new Manager();
        manager.name = "张三";
        manager.sex = "男";
        manager.salary = 20000;

        Salesman salesman=new Salesman();
        salesman.name="李四";
        salesman.sex = "男";
        salesman.salary=2000;
        salesman.num=300;

        Worker worker= new Worker();
        worker.name="老王";
        worker.sex="女";
        worker.days=26;
        worker.daySalary=120;


        System.out.println(manager.toString());
        System.out.println(salesman.toString());
        System.out.println(worker.toString());
    }
}
